package com.zkw.group.mapper;

import com.zkw.group.entity.CourseRelation;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseRelationMapper {

    //通过课程id分页查询课程所有先修后修关系
    List<CourseRelation> getAllCourseRelationList(String relacname, String courseid, int pageStart, int pageSize);

    //获取该课程的先修后修关系数目
    int getCourseRelationCounts(String relacname,String courseid);

    //添加课程先修后修关系
    int addCourseRelation(CourseRelation courseRelation);

    //删除课程先修后修关系
    int deleteCourseRelation(String courseid,String relacname);

}
